package com.example.demo.model;

import java.io.Serializable;
import java.util.List;

//+-----------+--------------+------+-----+---------+----------------+
//| Field     | Type         | Null | Key | Default | Extra          |
//+-----------+--------------+------+-----+---------+----------------+
//| id        | int(11)      | NO   | PRI | NULL    | auto_increment |
//| dept_name | varchar(255) | YES  |     | NULL    |                |
//+-----------+--------------+------+-----+---------+----------------+
public class TbDept implements Serializable{
	private Integer id;
	private String deptName;
	private List<Employee> emps;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getDeptName() {
		return deptName;
	}
	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}
	
	@Override
	public String toString() {
		return "TbDept [id=" + id + ", deptName=" + deptName + ", emps=" + emps + "]";
	}
	/**
	 * @return the emps
	 */
	public List<Employee> getEmps() {
		return emps;
	}
	/**
	 * @param emps the emps to set
	 */
	public void setEmps(List<Employee> emps) {
		this.emps = emps;
	}
	
	
}
